package Presentation.GraphicUI;

import javax.swing.*;
import java.util.TreeMap;

public class NoUserScreen extends MovieSystemPanel {

    public NoUserScreen(MainScreen mainScreen) {
        super(mainScreen);

        add(createInstructionLabel("Please login (or register if you are new user)"));

        TreeMap<Integer, JButton> m_buttons = new TreeMap<Integer, JButton>();
        m_buttons.put(1,createNavigationButton("Login",MainScreen.LOGIN_PANEL));
        m_buttons.put(2,createNavigationButton("Register",MainScreen.REGISTER_PANEL));
        add(createButtonsPanel(m_buttons));

        add(IconFactory.getIconForType(IconFactory.WELCOME_PIC));
    }
}
